package com.killer.goods.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.killer.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 分类表
 * </p>
 *
 * @author killer
 * @since 2021-08-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("tb_category")
@ApiModel(value="Category对象", description="分类表")
public class Category extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "分类名称")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "商品数量")
    @TableField("goods_num")
    private Integer goodsNum;

    @ApiModelProperty(value = "是否显示")
    @TableField("is_show")
    private String isShow;

    @ApiModelProperty(value = "是否导航")
    @TableField("is_menu")
    private String isMenu;

    @ApiModelProperty(value = "排序")
    @TableField("seq")
    private Integer seq;

    @ApiModelProperty(value = "上级ID")
    @TableField("parent_id")
    private Long parentId;

    @ApiModelProperty(value = "模板ID")
    @TableField("template_id")
    private Long templateId;


}
